<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <title>streetsolvers<%= "- #{h @page_title}" if @page_title %></title>
  <%= stylesheet_link_tag 'display' %>
  <%= javascript_include_tag :defaults %>
</head>

<% def _(x); return(x); end %>
<% @posex_count = 0; %>

<body>

<div id="header">

  <% if logged_in? %>
  <h1 id="posex">You've caused <big><%= @posex_count %></big> positive experiences</h1>
  <% end %>

  <ul id="login">
    <% if logged_in? %>
    <li class="logout">welcome, <%=current_user.login%> (<%= link_to _('Logout'), session_path, :method => :delete %>)</li>
    <% else %>
    <li class="login"><%= link_to _('Login'), new_session_path %></li>
    <li class="login"><%= link_to _('Signup'), user_path(:new) %></li>
    <% end %>
  </ul>

  <h1><%= link_to 'streetsolvers', '/' %></h1>

  <ul id="nav">
    <li><a href="/">Situations</a>
    <li><%= link_to _('Agents'), users_path %></li>
    <li><%= link_to _('Teams'), 'forums', :rel => 'home' %></li>
    <% if logged_in? %>
    <li><%= link_to _('Settings'), user_path(current_user) %></li>
    <% end %>
    
  </ul>

  <div id="subtitle">global instruction interface</div>
  
</div>

<div id="container">

<div id="content">
  
<% if flash.any? %>
	<%= content_tag 'p', h(flash[:notice]), :class => 'notice' if flash[:notice] %>
	<%= content_tag 'p', h(flash[:error]), :class => 'notice error' if flash[:error] %>
	<% flash.clear %>
<% end %>
  
<%= yield %>
</div>

<div id="right">
    <%= yield :sidebar %>
</div>

<br style="clear:both;" />

</div>

<div id="footer">
<p class="disclaim">
<strong>Our mission: &nbsp; &ldquo;to increase, via outdoor public action, the number of positive experiences in the world.&rdquo;
  </strong>
</p>
<div class="legal">
	<li><a href="/about/" style="color:#369;">About GiftSquad</a></li>
	<li><a href="/legal/" style="color:#369;">Legal</a></li>
</div>

<p class="credit">
	
	<br/><br/>
  My apologies&mdash;I've temporarily ripped off the layout and stylesheet from <a href="http://beast.caboo.se/">Beast</a><br/> (&copy; 2006 <a href="http://www.workingwithrails.com/person/5337-josh-goebel" class="subtle">Josh Goebel</a> <%= _('and') %> <a href="http://weblog.techno-weenie.net" class="subtle">Rick Olson</a>).  I will replace it before the final version.
</p>
<br style="clear:both;" />
</div>
</body>
</html>